// import { transformData } from '@/utils/marketingMap/utils';
import request from '@/utils/request';

// 1.
export const fetchOptionList = async () => {
  const result = await request(`/msmarketingmap/base/area/list`);

  if (result.statusCode !== '0') return {};
  // return transformData(result.data);
  return result.data
};

// 2. 本期不涉及车系
export const fetchSeriesList = async () => {
  const result = await request('/msmarketingmap/base/series/list?brandCode=dfpv');

  if (result.statusCode !== '0') return [];

  return result.data;
};
// 判断
export const fetchTree = async () => {
  const result = await request('/org/tree');

  if (result.statusCode !== '0') return {};

  return result.data;
};
